package com.hmsm.sys.dao;

import java.util.Date;
import java.util.List;

import com.hmsm.server.base.IBaseDao;
import com.hmsm.sys.po.SysMessagePublish;

public interface SysMessagePublishDao extends IBaseDao<SysMessagePublish, Integer>{

	/**
	 * 
	 *  @Description:查询消息列表
	 *  @MethodName :getAllMessage
	 *  @Author     :zhangshuai
	 *  @CreateDate :2013-7-12 上午11:32:00 
	 *  @return List<SysMessagePublish>
	 *
	 */
	public List<SysMessagePublish> getMessageList(String title,String startTime,String endTime);
	/**
	 * 
	 *  @Description:查询最新消息
	 *  @MethodName :querryMessageTOP
	 *  @Author     :zhangshuai
	 *  @CreateDate :2013-7-12 下午03:26:38 
	 *  @return
	 *
	 */
	public SysMessagePublish querryMessageTOP();
	/**
	 * 
	 *  @Description: 分页查询消息列表
	 *  @MethodName :getMessageList
	 *  @Author     :zhangshuai
	 *  @CreateDate :2013-7-22 下午02:03:04 
	 *  @param beginTime
	 *  @param endTime
	 *  @param title
	 *  @param pageIndex
	 *  @param pageSize
	 *  @return
	 *
	 */
	public List<SysMessagePublish> getMessageList(Date beginTime,Date endTime,String title,Integer pageIndex,Integer pageSize);
	/**
	 * 
	 *  @Description:分页查询消息条数
	 *  @MethodName :getMessageCount
	 *  @Author     :zhangshuai
	 *  @CreateDate :2013-7-22 下午01:58:36 
	 *  @param beginTime
	 *  @param endTime
	 *  @param title
	 *  @return
	 *
	 */
	public int getMessageCount(Date beginTime,Date endTime,String title);
	
}
